package xyz.liuyuhe.StudySpring.ch9.demo3;

public class AccountServiceImpl implements AccountService{
    private AccountDao accountDao;
    
    @Override
    public void transfer(String out, String in, double money) {
        accountDao.outMoney(out, money);
        accountDao.inMoney(in, money);
    }

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }
}
